From 655bd1275ca1f4fb39d80fad9c392b942d7c77b2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Wed, 15 Mar 2017 22:36:12 +0100 Subject: [PATCH] do not print missing fast path message when tolerance is very small During the build of examples for GEGL when hashes are being cheched, the BABL_TOLERANCE is set to 0.0 on purpose. Complaints about missing fast-paths here are noise. --- babl/babl-fish-path.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/babl/babl-fish-path.c b/babl/babl-fish-path.c index 4f169d0..77671ff 100644 --- a/babl/babl-fish-path.c +++ b/babl/babl-fish-path.c @@ -352,8 +352,12 @@ babl_fish_path (const Babl *source, #endif { static int warnings = 0; + + if (_babl_legal_error() <= 0.0000000001) + return NULL; + if (warnings++ == 0) - fprintf (stderr, + fprintf (stderr, "Missing fast-path babl conversion detected, Implementing missing babl fast paths\n" "accelerates GEGL, GIMP and other software using babl, warnings are printed on\n" "first occurance of formats used where a conversion has to be synthesized\n" -- 2.30.2